/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.netmaster.coitaonline.dao.mapper;

import com.netmaster.coitaonline.pojo.Servidor;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

/**
 *
 * @author abelgtzz
 */
public class ServidorMapper implements RowMapper<Servidor> {

    @Override
    public Servidor mapRow(ResultSet rs, int i) throws SQLException {
        Servidor s = new Servidor();
        

        s.setIdservidor(rs.getInt("idservidor"));
        s.setNombre(rs.getString("nombre"));
       
        return s;
    }

}
